package com.mdh.runerrands.service;

import com.alibaba.druid.util.StringUtils;
import com.mdh.runerrands.pojo.Order;
import com.mdh.runerrands.pojo.OrderDetail;

import java.util.List;

public interface OrderService {
    List<Order> findAll();
    boolean deleteById(int id);
    OrderDetail findById(int id);
    List<OrderDetail> query(Integer customerId,Integer waiterId,String status);
    boolean update(Order order);
    boolean batchDelete(int ...ids);
    boolean sendOrder(int id,int waiterId);
    List<OrderDetail> queryPage(Integer page, Integer pageSize, Long orderTime, Integer total, String status, Integer customerId, Integer waiterId,Integer orderId);
    int selectCount(Long orderTime, Integer total, String status, Integer customerId, Integer waiterId,Integer orderId);
    boolean takeOrder(int orderId);
    boolean serviceCompleteOrder(int orderId);
    boolean confirmOrder(int orderId) throws Exception;
    boolean insert(Order order);
    Order selectByTime(Long time);
    boolean updateRemark(int id , String remark);
    boolean cancelOrder(Integer orderId);
    boolean updateStatus(Integer orderId ,String status);
}
